home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / ANTENNA / YAGIU112 / P_PFORM.C < prev    next >
C/C++ Source or Header  |  1995-08-11  |  602b  |  25 lines

  1. #include <stdio.h>
  2. #include "yagi.h"
  3.  
  4. void print_relavent_performance_data(FILE *fp,char *s, int i, struct flags flag , struct performance_data data, double fitness, int Z_Q, int fitness_Q)
  5. {
  6.     if(i!=0)
  7.         fprintf(fp,"%5d ",i);
  8.     else
  9.     {}
  10.     fprintf(fp,"%sG=%5.2lfdBi,FB=%6.2lfdB,",s,data.gain,data.fb);
  11.     fprintf(fp,"SL=%5.2lfdB,",data.sidelobe);        
  12.     fprintf(fp,"SWR=%5.2lf",data.swr);
  13.     if(Z_Q==TRUE)
  14.     {
  15.         fprintf(fp,",Z=%6.2lf",data.r);
  16.         if(data.x<0.0)
  17.             fprintf(fp,"-j%6.2lf",-data.x);
  18.         else
  19.             fprintf(fp,"+j%6.2lf",data.x);
  20.     }
  21.     if(fitness_Q==TRUE)
  22.         fprintf(fp,",%.3lf",fitness);
  23.     fprintf(fp,"\n");
  24. }
  25.